<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Código-Fonte de cross_over_thread.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Busca');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Busca" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
      <li><a href="globals.html"><span>Arquivos&nbsp;Membros</span></a></li>
    </ul>
  </div>
<h1>cross_over_thread.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef CROSS_OVER_THREAD_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define CROSS_OVER_THREAD_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;boost/thread/mutex.hpp&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;boost/thread/thread.hpp&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;boost/thread/condition.hpp&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;boost/bind.hpp&gt;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="genetic__operator__thread_8h.html">genetic_operator_thread.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="cross__over_8h.html">cross_over.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="semaphore_8h.html">semaphore.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> _ty,<span class="keyword">typename</span> _realTy&gt; 
<a name="l00014"></a><a class="code" href="classcross__over__thread.html">00014</a> <span class="keyword">class </span><a class="code" href="classcross__over__thread.html">cross_over_thread</a> : <span class="keyword">public</span> <a class="code" href="classcross__over.html">cross_over</a> &lt;_ty,_realTy&gt; , <span class="keyword">public</span> <a class="code" href="classgenetic__operator__thread.html">genetic_operator_thread</a>&lt;_ty,_realTy&gt;
<a name="l00015"></a>00015 {
<a name="l00016"></a>00016   <span class="keyword">public</span>:
<a name="l00017"></a>00017 
<a name="l00018"></a>00018     <span class="comment">/* --------------------------------------------------------------- *</span>
<a name="l00019"></a>00019 <span class="comment">     * --- Construtores/destrutores                                    *</span>
<a name="l00020"></a>00020 <span class="comment">     * --------------------------------------------------------------- */</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00028"></a>00028     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00029"></a>00029     <a class="code" href="classcross__over__thread.html#acaa709237e2789b033adb64a7217059b">cross_over_thread</a> (<a class="code" href="classpopulation.html">population&lt;_ty,_realTy&gt;</a>* popPt);
<a name="l00030"></a>00030 
<a name="l00031"></a>00031     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00035"></a>00035     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00036"></a>00036     <a class="code" href="classcross__over__thread.html#ac0399322791eac4c1e09d1f60653c610">~cross_over_thread</a> ();
<a name="l00037"></a>00037 
<a name="l00038"></a>00038     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00044"></a>00044     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00045"></a>00045     <span class="keywordtype">void</span>* <a class="code" href="classcross__over__thread.html#a7cc2e9564ebe457e7e7c25d107b5da78">ConsumeAndProduceIndividuals</a> (<span class="keywordtype">void</span>);
<a name="l00046"></a>00046 
<a name="l00047"></a>00047   <span class="keyword">private</span>:
<a name="l00048"></a>00048 
<a name="l00049"></a>00049     <span class="comment">/* --------------------------------------------------------------- *</span>
<a name="l00050"></a>00050 <span class="comment">     * --- Definição básica                                            *</span>
<a name="l00051"></a>00051 <span class="comment">     * --------------------------------------------------------------- */</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00057"></a>00057     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00058"></a>00058     <span class="keyword">typedef</span> boost::mutex::scoped_lock scoped_lock;
<a name="l00059"></a>00059 
<a name="l00060"></a>00060     <span class="comment">/* --------------------------------------------------------------- *</span>
<a name="l00061"></a>00061 <span class="comment">     * --- Variáveis de sincronização                                  *</span>
<a name="l00062"></a>00062 <span class="comment">     * --------------------------------------------------------------- */</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064     <span class="comment">//mutexes para realizar o post e wait dos semáforos</span>
<a name="l00065"></a>00065     <span class="comment">//como saõ necessários 2 posts e dois waits, é necessária que a opereação seja atômica</span>
<a name="l00066"></a>00066     boost::mutex _mutexOnPost;
<a name="l00067"></a>00067     boost::mutex _mutexOnWait;
<a name="l00068"></a>00068 
<a name="l00069"></a>00069     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00073"></a>00073     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00074"></a>00074     <span class="keywordtype">void</span> WaitOnCrossOver (<span class="keywordtype">void</span>);
<a name="l00075"></a>00075 
<a name="l00076"></a>00076     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00080"></a>00080     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00081"></a>00081     <span class="keywordtype">void</span> PostOnCrossOver (<span class="keywordtype">void</span>);
<a name="l00082"></a>00082 
<a name="l00083"></a>00083     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00091"></a>00091     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00092"></a>00092     <span class="keyword">static</span> <span class="keywordtype">void</span>* CallConsumeAndProduce (<span class="keywordtype">void</span>* v){<a class="code" href="classcross__over__thread.html">cross_over_thread&lt;_ty,_realTy&gt;</a>* co = (<a class="code" href="classcross__over__thread.html">cross_over_thread&lt;_ty,_realTy&gt;</a>*)v; co-&gt;<a class="code" href="classcross__over__thread.html#a7cc2e9564ebe457e7e7c25d107b5da78">ConsumeAndProduceIndividuals</a>();<span class="keywordflow">return</span> 0;}
<a name="l00093"></a>00093 
<a name="l00094"></a>00094     <span class="comment">/* --------------------------------------------------------------- *</span>
<a name="l00095"></a>00095 <span class="comment">     * --- Fim das variáveis de sincronização                          *</span>
<a name="l00096"></a>00096 <span class="comment">     * --------------------------------------------------------------- */</span>
<a name="l00097"></a>00097 
<a name="l00098"></a>00098     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00107"></a>00107     <span class="comment">/* ----------------------------------------*/</span>
<a name="l00108"></a>00108     <span class="keywordtype">bool</span> CrossOver (<a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;</a>* id1,<a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;</a>* id2);
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 };
<a name="l00111"></a>00111 
<a name="l00112"></a>00112 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _ty,<span class="keyword">typename</span> _realTy&gt;
<a name="l00113"></a><a class="code" href="classcross__over__thread.html#acaa709237e2789b033adb64a7217059b">00113</a> <a class="code" href="classcross__over__thread.html#acaa709237e2789b033adb64a7217059b">cross_over_thread&lt;_ty,_realTy&gt;::cross_over_thread</a> (<a class="code" href="classpopulation.html">population&lt;_ty,_realTy&gt;</a>* popPt)
<a name="l00114"></a>00114 :<a class="code" href="classgenetic__operator__thread.html">genetic_operator_thread</a>&lt;_ty,_realTy&gt;(popPt) <span class="comment">//chama o construtor da classe mãe</span>
<a name="l00115"></a>00115 ,<a class="code" href="classcross__over.html">cross_over</a>&lt;_ty,_realTy&gt;() <span class="comment">//chama o construtor da calsse mãe</span>
<a name="l00116"></a>00116 {
<a name="l00117"></a>00117   <span class="comment">//inicia os semáforos</span>
<a name="l00118"></a>00118   this-&gt;_semConsumer = <span class="keyword">new</span> <a class="code" href="classsemaphore.html">semaphore</a> (0,def::population::population_size);
<a name="l00119"></a>00119   this-&gt;_semProducer = <span class="keyword">new</span> <a class="code" href="classsemaphore.html">semaphore</a> (def::population::population_size,def::population::population_size);
<a name="l00120"></a>00120 
<a name="l00121"></a>00121   <span class="comment">//cria e inicia as threads consumidoras</span>
<a name="l00122"></a>00122   <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != <a class="code" href="classgenetic__operator__thread.html">genetic_operator_thread&lt;_ty,_realTy&gt;::_coreNumbers</a>; ++i)
<a name="l00123"></a>00123   { 
<a name="l00124"></a>00124     boost::thread* t = <span class="keyword">new</span> boost::thread(boost::bind(&amp;CallConsumeAndProduce,<span class="keyword">this</span>));
<a name="l00125"></a>00125     this-&gt;_threadVec.push_back(t);
<a name="l00126"></a>00126   }
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 }
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="comment">//método executado pelas threads produtoras</span>
<a name="l00131"></a>00131 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _ty,<span class="keyword">typename</span> _realTy&gt;
<a name="l00132"></a><a class="code" href="classcross__over__thread.html#a7cc2e9564ebe457e7e7c25d107b5da78">00132</a> <span class="keywordtype">void</span>* <a class="code" href="classcross__over__thread.html#a7cc2e9564ebe457e7e7c25d107b5da78">cross_over_thread&lt;_ty,_realTy&gt;::ConsumeAndProduceIndividuals</a> (<span class="keywordtype">void</span>)
<a name="l00133"></a>00133 {
<a name="l00134"></a>00134   <span class="keywordflow">do</span>
<a name="l00135"></a>00135   {
<a name="l00136"></a>00136     <span class="comment">//confere se o algoritmo já não acabou</span>
<a name="l00137"></a>00137     <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classgenetic__operator__thread.html#aad1cfa9857458b80ca2f5ba2fa3c5d74">EndOfGA</a>())
<a name="l00138"></a>00138     {
<a name="l00139"></a>00139 
<a name="l00140"></a>00140       <span class="comment">//decrementa o semáforo</span>
<a name="l00141"></a>00141       <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classgenetic__operator__thread.html#aad1cfa9857458b80ca2f5ba2fa3c5d74">EndOfGA</a>())
<a name="l00142"></a>00142         WaitOnCrossOver();
<a name="l00143"></a>00143       
<a name="l00144"></a>00144 
<a name="l00145"></a>00145       <a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;</a>* id_1=NULL;
<a name="l00146"></a>00146       <a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;</a>* id_2=NULL;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148       <span class="comment">//tenta obter o mutex do ponteiro de saida</span>
<a name="l00149"></a>00149       <span class="keywordflow">if</span> (<span class="keyword">true</span>)
<a name="l00150"></a>00150       {
<a name="l00151"></a>00151           scoped_lock pointerLock(this-&gt;_outMutex);
<a name="l00152"></a>00152         <span class="comment">/* --------------------------------------------------------------- *</span>
<a name="l00153"></a>00153 <span class="comment">         * --- início da seção crítica                                     *</span>
<a name="l00154"></a>00154 <span class="comment">         * --------------------------------------------------------------- */</span>
<a name="l00155"></a>00155             
<a name="l00156"></a>00156 
<a name="l00157"></a>00157         <span class="comment">//extrai os indivíduos para o cruzamento</span>
<a name="l00158"></a>00158         id_1 = *(this-&gt;_outIterator);
<a name="l00159"></a>00159         this-&gt;<a class="code" href="classgenetic__operator__thread.html#a856af75479279710968a1aa2b26400de">IncrementIterator</a>(this-&gt;_outIterator);
<a name="l00160"></a>00160         id_2 = *(this-&gt;_outIterator);
<a name="l00161"></a>00161         this-&gt;<a class="code" href="classgenetic__operator__thread.html#a856af75479279710968a1aa2b26400de">IncrementIterator</a>(this-&gt;_outIterator);
<a name="l00162"></a>00162 
<a name="l00163"></a>00163       }
<a name="l00164"></a>00164       <span class="comment">/* --------------------------------------------------------------- *</span>
<a name="l00165"></a>00165 <span class="comment">       * --- fim da seção crítica                                        *</span>
<a name="l00166"></a>00166 <span class="comment">       * --------------------------------------------------------------- */</span>
<a name="l00167"></a>00167 
<a name="l00168"></a>00168       <span class="comment">//realiza o cruzamento dos indivíduos</span>
<a name="l00169"></a>00169       CrossOver(id_1,id_2);
<a name="l00170"></a>00170 
<a name="l00171"></a>00171       <span class="comment">//e os deposita no vetor do operador consumidor (operador de mutação)</span>
<a name="l00172"></a>00172       this-&gt;<a class="code" href="classgenetic__operator__thread.html#ad88e4f6c5afb05bbc55d5f44bce88ba2">_consumidorPt</a>-&gt;AddIndividual(id_1);
<a name="l00173"></a>00173       this-&gt;<a class="code" href="classgenetic__operator__thread.html#ad88e4f6c5afb05bbc55d5f44bce88ba2">_consumidorPt</a>-&gt;AddIndividual(id_2);
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 
<a name="l00176"></a>00176       <span class="comment">//decrementa o semáforo</span>
<a name="l00177"></a>00177       <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classgenetic__operator__thread.html#aad1cfa9857458b80ca2f5ba2fa3c5d74">EndOfGA</a>())
<a name="l00178"></a>00178         PostOnCrossOver();
<a name="l00179"></a>00179     }
<a name="l00180"></a>00180 
<a name="l00181"></a>00181     
<a name="l00182"></a>00182   }<span class="keywordflow">while</span> (!this-&gt;<a class="code" href="classgenetic__operator__thread.html#aad1cfa9857458b80ca2f5ba2fa3c5d74">EndOfGA</a>());
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 }
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _ty,<span class="keyword">typename</span> _realTy&gt;
<a name="l00187"></a>00187 <span class="keywordtype">bool</span> <a class="code" href="classcross__over__thread.html">cross_over_thread&lt;_ty,_realTy&gt;::CrossOver</a> (<a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;</a>* id1,<a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;</a>* id2)
<a name="l00188"></a>00188 {
<a name="l00189"></a>00189   <span class="comment">//confere se as dimensões são diferentes, ou seja se é possível realizar o cruzamento</span>
<a name="l00190"></a>00190   <span class="keywordflow">if</span> (id1-&gt;<a class="code" href="classindividual.html#a061ed50343d97420486e74d49e38a96f">GetSize</a>() != id2-&gt;<a class="code" href="classindividual.html#a061ed50343d97420486e74d49e38a96f">GetSize</a>())
<a name="l00191"></a>00191     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00192"></a>00192   <span class="keywordflow">else</span>
<a name="l00193"></a>00193   {
<a name="l00194"></a>00194 
<a name="l00195"></a>00195     <span class="keywordtype">int</span> i = 0;<span class="comment">//variável para contar qual dimensão que se encontra a busca (usada somente no CrossOver(...)</span>
<a name="l00196"></a>00196 
<a name="l00197"></a>00197     <span class="comment">//percorre cada dimensão dos indivíduos</span>
<a name="l00198"></a>00198     <span class="keywordflow">for</span> (<span class="keyword">typename</span> <a class="code" href="classindividual.html">individual&lt;_ty,_realTy&gt;::it_</a> idIt = id1-&gt;<a class="code" href="classindividual.html#aacc10fcba3051c1b1913afe924c8f293">begin</a>(); idIt != id1-&gt;<a class="code" href="classindividual.html#af2c60e6a02eae91c9f1b419a11067bdb">end</a>(); ++idIt)
<a name="l00199"></a>00199     {
<a name="l00200"></a>00200       <span class="comment">//testa se o cruzamento irá acontecer</span>
<a name="l00201"></a>00201       <span class="keywordflow">if</span> (this-&gt;_probability &gt; <a class="code" href="classgenetic__operator.html">genetic_operator&lt;_ty,_realTy&gt;::GenerateRandom</a>())
<a name="l00202"></a>00202       {
<a name="l00203"></a>00203         <span class="keywordtype">int</span> cuttOffpt; <span class="comment">//ponto de corte</span>
<a name="l00204"></a>00204 
<a name="l00205"></a>00205         <span class="comment">//gera um ponto de corte aleatório para a dimensão do indivíduo</span>
<a name="l00206"></a>00206         <span class="keywordflow">do</span>
<a name="l00207"></a>00207         {
<a name="l00208"></a>00208           <span class="comment">//gera um número aleatório dentro do intervalo</span>
<a name="l00209"></a>00209           cuttOffpt = <a class="code" href="classgenetic__operator.html#a406eeb5144dd74698fcd9a120f021aba">genetic_operator&lt;_ty,_realTy&gt;::GenerateRandom</a> (_ty((*idIt)-&gt;GetSize()-1));
<a name="l00210"></a>00210         }<span class="keywordflow">while</span> ((cuttOffpt&lt;0)&amp;&amp;(cuttOffpt&gt;=(*idIt)-&gt;GetSize()));
<a name="l00211"></a>00211 
<a name="l00212"></a>00212         <span class="comment">//realiza o cruzamento propriamente dito</span>
<a name="l00213"></a>00213         <a class="code" href="classcross__over.html">cross_over&lt;_ty,_realTy&gt;::CrossOver</a>(*(*idIt),*(*(id2-&gt;<a class="code" href="classindividual.html#aacc10fcba3051c1b1913afe924c8f293">begin</a>()+i)),cuttOffpt);
<a name="l00214"></a>00214       }
<a name="l00215"></a>00215       i++;<span class="comment">//incrementa para a próxima dimensão</span>
<a name="l00216"></a>00216     }
<a name="l00217"></a>00217     <span class="keywordflow">return</span> <span class="keyword">true</span>;<span class="comment">//as dimensões eram a mesma e foi possível realizar o cruzamento</span>
<a name="l00218"></a>00218   }
<a name="l00219"></a>00219 }
<a name="l00220"></a>00220 
<a name="l00221"></a>00221 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _ty,<span class="keyword">typename</span> _realTy&gt;
<a name="l00222"></a>00222 <span class="keywordtype">void</span> <a class="code" href="classcross__over__thread.html">cross_over_thread&lt;_ty,_realTy&gt;::WaitOnCrossOver</a> (<span class="keywordtype">void</span>)
<a name="l00223"></a>00223 {
<a name="l00224"></a>00224   scoped_lock lock(_mutexOnWait);
<a name="l00225"></a>00225 
<a name="l00226"></a>00226   <span class="comment">//decrementa o semáforo 2 vezes pois cada thread consome e produz dois indivíduos</span>
<a name="l00227"></a>00227   this-&gt;_semConsumer-&gt;<a class="code" href="classsemaphore.html#af0e430d192c44be1d65f5a4fd8cb91a4">wait</a>();
<a name="l00228"></a>00228   this-&gt;_semConsumer-&gt;<a class="code" href="classsemaphore.html#af0e430d192c44be1d65f5a4fd8cb91a4">wait</a>();
<a name="l00229"></a>00229 }
<a name="l00230"></a>00230 
<a name="l00231"></a>00231 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> _ty,<span class="keyword">typename</span> _realTy&gt;
<a name="l00232"></a>00232 <span class="keywordtype">void</span> <a class="code" href="classcross__over__thread.html">cross_over_thread&lt;_ty,_realTy&gt;::PostOnCrossOver</a> (<span class="keywordtype">void</span>)
<a name="l00233"></a>00233 {
<a name="l00234"></a>00234   scoped_lock lock(_mutexOnPost);
<a name="l00235"></a>00235 
<a name="l00236"></a>00236   <span class="comment">//incrementa o semáforo 2 vezes pois cada thread consome e produz dois indivíduos</span>
<a name="l00237"></a>00237   this-&gt;<a class="code" href="classgenetic__operator__thread.html#af325a8a1c9964fc0eac9e2eeda670499">_producerPt</a>-&gt;GetSemProducer()-&gt;post();
<a name="l00238"></a>00238   this-&gt;<a class="code" href="classgenetic__operator__thread.html#af325a8a1c9964fc0eac9e2eeda670499">_producerPt</a>-&gt;GetSemProducer()-&gt;post();
<a name="l00239"></a>00239 }
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 
<a name="l00242"></a>00242 <span class="preprocessor">#endif //CROSS_OVER_THREAD_H</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Todos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Arquivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Definições de Tipos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Amigas</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Gerado em Sat Oct 30 13:47:50 2010 por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
